Q61: What happens if the execution of a Smart Contract consumes
more than the specified gas?
A. The contract still gets executed
B. The contract does not get executed
C. The user gets a refund
D. None of the above
Q62: In the Etherscan website, the transaction fee of each
transaction is quoted in which of the following?
A. Ether
B. Wei
C. USD
D. Both A and C
Q63: What is the maximum value that you can set in the following
code?
// SPDX-License-Identifier: SOME IDENTIFIER
pragma solidity ^0.8.10;
contract MaxValueContract {
uint8 veryBigNumber;
function getValue() public view returns(uint8) {
return veryBigNumber;
}
function setValue(uint8 newValue) public {
veryBigNumber = newValue;
}
}
A. The maximum value for uint8 is 99999999
B. The maximum value for uint8 is 99999998
C. The maximum value for uint8 is 255
D. The maximum value for uint8 is too big to be accommodated in
one line